package com.leon.workenginespace.event;

import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @description: 事件
 * @author: WT
 * @date: 2024/3/19 23:47
 * @Version 1.0
 **/
@Data
public class EventData implements Serializable {

    private static final long serialVersionUID = -1L;

    /**
     * 业务号
     */
    private String bizNo;
    /**
     * 内部控制
     */
    private InternalControl internalControl = new InternalControl();

    @Data
    public static class InternalControl implements Serializable {

        private static final long serialVersionUID = -1783385195084124434L;

        /**
         * 事件定义ID
         */
        private String eventId;

        /**
         * 事件记录ID
         */
        private String eventListId;

        /**
         * 链路跟踪ID
         */
        private String traceId;

        /**
         * 链路跟踪变量
         */
        private Map<String, String> extMap = new HashMap<>();
    }
}